<template>
  <transition name="el-zoom-in-center">
    <div class="cu-preview-main">
      <div class="cu-common-page-header">
        <el-page-header @back="goBack" content="查看公告" />
        <div class="options">
          <el-button @click="goBack()">{{$t('common.cancelButton')}}</el-button>
        </div>
      </div>
      <el-form ref="dataForm" :model="dataForm" label-width="80px" size="mini" v-loading="loading" class="main">
        <el-form-item label-width="10px">
          <p class="content" v-html="dataForm.bodyText"></p>
        </el-form-item>
      </el-form>
    </div>
  </transition>
</template>
  
  <script>
import { getDownloadUrl } from '@/api/common'
import { EmailInfo } from '@/api/extend/email'
export default {
  data () {
    return {
      isSend: false,
      dataForm: {
        bodyText: '',
      },
      loading: false
    }
  },
  methods: {
    goBack () {
      this.$emit('close')
    },
    init (bodyText) {
      console.log(bodyText)
      //   this.loading = true
      if (bodyText) {
        this.dataForm.bodyText = bodyText
        // this.loading = false
      }
    },
  }
}
  </script>
  <style lang="scss" scoped>
.el-form {
  >>> .el-form-item {
    margin-bottom: 0;
  }
  >>> .el-divider--horizontal {
    margin: 5px 0;
  }
  .text {
    word-break: break-all;
  }
  h4.text {
    font-size: 15px;
  }
  >>> .el-upload-list__item:first-child {
    margin-top: 3px;
  }
}
</style>